<?php

namespace App\Http\Controllers;

use App\Blog;
use App\User;
use Illuminate\Http\Request;

class EntryController extends Controller
{
    public function index(){
        //获取所有博客内容
        $blogs = Blog::paginate(5);
        return view('index',compact('blogs'));
    }
}
